package com.zsrt.java.ch03;


import org.junit.Test;

public class QueueTest {
	
	
	@Test
	public void testName() throws Exception {
		Node head = new Node();
		
		Queue queue  = new Queue(head);
		
		//1 添加3个节点  3 5 9
		Node node1 = new Node(3);
		Node node2 = new Node(5);
		Node node3 = new Node(9);
		
		queue.push(node1);
		queue.push(node2);
		queue.push(node3);
		
		while(!queue.isEmpty()){
			Node node = queue.pop();
			System.out.print(node.getData()+"-->");
		}
	}

}
